package com.ss;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/11 - 03 - 11 - 9:38
 */
public class Student {
    private String name;
    private int age;
    private double height;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public Student() {

    }

    public Student(String name, int age, double height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }

    //方法的重写
    public String toString() {
        return "这是一个student对象，这个对象的名字：" + name + ",年龄:" + age + ",身高:" + height;
    }

}
